package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by shenminjie on 2017/10/13.
 * mail:shenminjie@100bei.com
 */

public class TradeTimeInfo implements Serializable, Parcelable {
    /**
     * 接口返回
     */
    private int flag;

    public TradeTimeInfo(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "TradeTimeInfo{" +
                "flag=" + flag +
                '}';
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.flag);
    }

    public TradeTimeInfo() {
    }

    protected TradeTimeInfo(Parcel in) {
        this.flag = in.readInt();
    }

    public static final Parcelable.Creator<TradeTimeInfo> CREATOR = new Parcelable.Creator<TradeTimeInfo>() {
        @Override
        public TradeTimeInfo createFromParcel(Parcel source) {
            return new TradeTimeInfo(source);
        }

        @Override
        public TradeTimeInfo[] newArray(int size) {
            return new TradeTimeInfo[size];
        }
    };
}
